package cn.coco.jf.fw.core.db;

import com.jfinal.plugin.activerecord.Model;

import cn.coco.jf.fw.core.consts.JkConst;

public class SysMenuTbl extends Model<SysMenuTbl>{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    public static SysMenuTbl dao = new SysMenuTbl().use(JkConst.DATA_SOURCE_NAME_MYSQL);
    
    public static SysMenuTbl newInstance(){
        return new SysMenuTbl().use(JkConst.DATA_SOURCE_NAME_MYSQL);
    }
    
    public SysMenuTbl(){
        this.use(JkConst.DATA_SOURCE_NAME_MYSQL);
    }
    
    private Integer id;
    private Integer parentId;
    private String title;
    private String icon;
    private String menuUrl;
    private Integer menuSort;

    public Integer getId() {
        return get("id");
    }
    public void setId(Integer id) {
        set("id", id);
    }
    public Integer getParentId() {
        return get("parentId");
    }
    public void setParentId(Integer parentId) {
        set("parentId", parentId);
    }
    public String getTitle() {
        return get("title");
    }
    public void setTitle(String title) {
        set("title", title);
    }
    public String getMenuUrl() {
        return get("menuUrl");
    }
    public void setMenuUrl(String menuUrl) {
        set("menuUrl", menuUrl);
    }
    public Integer getMenuSort() {
        return get("menuSort");
    }
    public void setMenuSort(Integer menuSort) {
        set("menuSort", menuSort);
    }
    public String getIcon() {
        return get("icon");
    }
    public void setIcon(String icon) {
        set("icon", icon);
    }

}
